From: Camm Maguire Date: Sun, 21 Sep 2025 18:06:45 +0000 (-0400) Subject: X-Git-Tag: archive/raspbian/2.7.1-8+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e7cf7f5e266ab01c83cb0bcce75727b1dc278d76;p=gcl27.git Bug-Debian: https://bugs.debian.org/1114119 TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. gcl27 (2.7.1-8) unstable; urgency=medium * Bug fix: "FTBFS: /tmp/gazonk_6005_0.c:21:63: error: implicit declaration of function '__builtin_c23_va_start'; did you mean '__builtin_ms_va_start'? [-Wimplicit-function-declaration]", thanks to Santiago Vila (Closes: #1114119). * Version_2_7_2pre7 Gbp-Pq: Name Version_2_7_2pre7 --- diff --git a/configure b/configure index cf8b4c1..f715b64 100755 --- a/configure +++ b/configure @@ -7000,6 +7000,61 @@ fi +add_arg_to_cppflags() { + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CPPFLAG $1" >&5 +printf %s "checking for CPPFLAG $1... " >&6; } + CPPFLAGS_ORI=$CPPFLAGS + CPPFLAGS="$CPPFLAGS -Werror $1 `echo $1|sed 's,-Wno-,-W,1'`" + if test "$cross_compiling" = yes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +else case e in #( + e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + CPPFLAGS="$CPPFLAGS_ORI $1";{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; };return 0 +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } ;; +esac +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext ;; +esac +fi + + CPPFLAGS=$CPPFLAGS_ORI + return 1 + +} + +assert_arg_to_cppflags() { + if ! add_arg_to_cppflags $1 ; then { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot add $1 to CPPFLAGS" >&5 +printf "%s\n" "cannot add $1 to CPPFLAGS" >&6; }; exit 1 ; fi + return 0 +} + +add_args_to_cppflags() { + + while test "$#" -ge 1 ; do + add_arg_to_cppflags $1 + shift + done +} + add_arg_to_cflags() { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLAG $1" >&5 @@ -7127,6 +7182,8 @@ printf "%s\n" "removing $1 from LDFLAGS" >&6; } } +add_args_to_cppflags -std=gnu17 + add_args_to_cflags -fsigned-char -pipe -fcommon \ -fno-builtin-malloc -fno-builtin-free \ -fno-PIE -fno-pie -fno-PIC -fno-pic \ diff --git a/configure.ac b/configure.ac index cb02d99..176b667 100644 --- a/configure.ac +++ b/configure.ac @@ -170,6 +170,34 @@ fi AC_SUBST(GCL_CC) AC_SUBST(CPP) +add_arg_to_cppflags() { + + AC_MSG_CHECKING([for CPPFLAG $1]) + CPPFLAGS_ORI=$CPPFLAGS + CPPFLAGS="$CPPFLAGS -Werror $1 `echo $1|sed 's,-Wno-,-W,1'`" + AC_RUN_IFELSE( + [AC_LANG_PROGRAM([[]],[[]])], + [CPPFLAGS="$CPPFLAGS_ORI $1";AC_MSG_RESULT([yes]);return 0], + [AC_MSG_RESULT([no])], + [AC_MSG_RESULT([no])]) + CPPFLAGS=$CPPFLAGS_ORI + return 1 + +} + +assert_arg_to_cppflags() { + if ! add_arg_to_cppflags $1 ; then AC_MSG_RESULT([cannot add $1 to CPPFLAGS]); exit 1 ; fi + return 0 +} + +add_args_to_cppflags() { + + while test "$#" -ge 1 ; do + add_arg_to_cppflags $1 + shift + done +} + add_arg_to_cflags() { AC_MSG_CHECKING([for CFLAG $1]) @@ -242,6 +270,8 @@ remove_arg_from_ldflags() { } +add_args_to_cppflags -std=gnu17 + add_args_to_cflags -fsigned-char -pipe -fcommon \ -fno-builtin-malloc -fno-builtin-free \ -fno-PIE -fno-pie -fno-PIC -fno-pic \ diff --git a/git.tag b/git.tag index 1053920..5b5073a 100644 --- a/git.tag +++ b/git.tag @@ -1,2 +1,2 @@ -"Version_2_7_2pre6" +"Version_2_7_2pre7"